package com.gouda.core.service.systemManage;


import com.themis.dto.BackendSystemUserDto;
import com.themis.dto.FrontFunctionDto;
import com.themis.dto.SystemUserDto;
import org.amethyst.atlas.basic.component.PageData;

import java.util.List;

/**
 * 够达用户service
 * Created by KGL on 2015/8/13.
 */
public interface MerchantUserService {

    PageData<SystemUserDto> loadUsersByPrivilege(String loginUserId, String userCode, String userName, String userStatus, String pageNum);

    void modifyUser(String loginUserId, String userId, String userName, String userPassword, String userStatus);

    boolean checkExist(String userCode);

    void addUser(String loginUserId, String userCode, String userName, final String userPhone);

    void auth(String userId, String rolesStr);

    BackendSystemUserDto login(String code, String pwd);

    BackendSystemUserDto getUserById(String userId);

    List<FrontFunctionDto> loadUserPrivileges(Long userId);

    boolean authMerchant2Admin(long merchantId, String loginUserId);

}

